<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>外卖管理系统</title>
<link rel="stylesheet" href="/css/admin.css" type="text/css"/>
<script type="text/javascript" src="/js/jquery-1.6.1.min.js"></script>
</head>
<body leftmargin="2" topmargin="2">
 <fieldset><legend>订单信息-<a href="javascript:history.go(-1);">返回</a></legend>
 <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  <COLGROUP>
  <COL width="100" />
  <COL width="*" />
    <tr class="tdbg2"> 
      <td align="right" >用 户 名：</td>
      <td><s:property value="orders.linkMan"/></td>
    </tr>
    <tr class="tdbg2"> 
      <td align="right" >联系电话：</td>
      <td><s:property value="orders.phone" /> | <s:property value="orders.backPhone" /></td>
    </tr>
    <tr class="tdbg2"> 
      <td align="right" >地址：</td>
      <td><s:property value="orders.address" /></td>
    </tr>
    <tr class="tdbg2"> 
      <td align="right" >饭店名称：</td>
      <td><s:property value="orders.resName" /></td>
    </tr>
    <tr class="tdbg2"> 
      <td align="right" >写字楼：</td>
      <td><s:property value="orders.scriptorium.scrName" /></td>
    </tr>
    <tr class="tdbg2"> 
      <td align="right" >是否保存：</td>
      <td>
	  <s:if test="orders.valid==0">
      	不保存
      </s:if>
      <s:if test="orders.valid==1">
      	保存
      </s:if>
      </td>
    </tr>
    <tr class="tdbg2"> 
      <td align="right" >状态：</td>
      <td>
	  <s:if test="orders.state==0">
      	下单
      </s:if>
      <s:if test="orders.state==1">
      	饭店接单
      </s:if>
      <s:if test="orders.state==2">
      	送出
      </s:if>
      <s:if test="orders.state==3">
      	交易成功
      </s:if>
      </td>
    </tr>
    <tr class="tdbg2"> 
      <td align="right" >添加时间：</td>
      <td><s:date name="orders.addTime" format="yyyy-MM-dd HH:mm"/></td>
    </tr>
    <tr class="tdbg2"> 
      <td align="right" >订单信息：</td>
      <td>
	<s:iterator id="m" value="%{orders.menuList}" status="st" >
		菜名:<s:property value="#m.menuName" /> 价格:<s:property value="#m.price" /> 份数:<s:property value="#m.copies" />
		<br />
	</s:iterator>		
      </td>
    </tr>
</table></fieldset>
</body>
</html>
